package com.lanbu.system.domain.mongo;
import lombok.Data;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

@Data
@Document(collection = "chatitems")  // 指定 MongoDB 集合名
public class MongoChatitems {
    @Id
    private ObjectId id;


    @Field("teamId")
    private ObjectId teamId;
    @Field("chatId")
    private String chatId;
    @Field("appId")
    private ObjectId appId;
}
